package com.vietnam.power.domain;

public class FileUpload {
	private Integer id;
	private String fileName;
	private String name;
	private String thumbName;
	private Integer imageId;
	private Boolean status;
	private String description;

	public FileUpload() {
	}

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getImageId() {
		return imageId;
	}

	public void setImageId(Integer imageId) {
		this.imageId = imageId;
	}

	public String getFileName() {
		return this.fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getThumbName() {
		return this.thumbName;
	}

	public void setThumbName(String thumbName) {
		this.thumbName = thumbName;
	}

	public Boolean isStatus() {
		return status;
	}

	public void setStatus(Boolean status) {
		this.status = status;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public void convertToDomain(com.vietnam.power.persitence.FileUpload f) {
		this.id = f.getId();
		this.name = f.getName();
		this.thumbName = f.getThumbName();
		this.fileName = f.getFileName();
		this.status = f.getStatus();
		this.imageId = f.getId();
		this.description = f.getDescription();
	}

	public void convertToPersist(com.vietnam.power.persitence.FileUpload f) {
		f.setName(this.name);
		f.setFileName(this.fileName);
		f.setThumbName(this.thumbName);
		f.setDescription(this.description);
	}
}
